<!--
The MIT License

Copyright 2012 Anonymous.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<html>
    <head>
        <title></title>
        <style>
            body {
                font-family: sans-serif;
                text-align: center;
                padding: 24px;
            }
            
            h1 { color: #0099CC; }
            h2 { color: #333333; }
            h3 { color: #666666; font-style: italic; text-align: left; }
            
            p {
                text-align: left;
                text-indent: 36px;
            }
        </style>
    </head>
    <body>
        <h1>Pentomino Game</h1>
        <h2>Description</h2>
        <p>
            A pentomino is a polyomino composed of five (<i>Ancient Greek</i> 
            πέντε / pénte) congruent squares, connected along their edges 
            (which sometimes is said to be an orthogonal connection).
        </p>
        <p>
            There are 12 different free pentominoes, often named after the 
            letters of the Latin alphabet that they vaguely resemble. 
            Ordinarily, the pentomino obtained by reflection or rotation 
            of a pentomino does not count as a different pentomino.
        </p>
        <p>
            Each of the twelve pentominoes can be tiled to fill the plane. 
            In addition, each chiral pentomino can be tiled without using 
            its reflection.
        </p>
        <p>
            A standard pentomino puzzle is to tile a rectangular box with the 
            pentominoes, i.e. cover it without overlap and without gaps.
        </p>
        <h2>How to play</h2>
        <h3>Choice the figure</h3>
        <img src="figures.PNG" title="A part of the toolbar with all of presented figures."/>
        <p>
            You can choose the figure by clicking on its image (icon). 
            Otherwise you can use the next <i>shortcut keys</i>: <b>F</b>, 
            <b>I</b>, <b>L</b>, <b>N</b>, <b>P</b>, <b>T</b>, <b>U</b>, 
            <b>V</b>, <b>W</b>, <b>X</b>, <b>Y</b>, <b>Z</b>. 
            You can find a shortcut key of each shape by moving the 
            mouse pointer on its image (icon).
        </p>
        <h3>Edit the figure</h3>
        <img src="actions.PNG" title="A menu 'Actions' items."/>
        <p>
            For editing the figures use the <b>Actions</b> menu and its 
            commands. <i>Rotate Left</i> (shortcut <b>Ctrl</b>+<b>G</b>) - 
            rotates the figure counterclockwise. <i>Rotate Right</i> 
            (shortcut <b>Ctrl</b>+<b>C</b>) - rotates the figure clockwise.
            <i>Flip Horizontal</i> (shortcut <b>Ctrl</b>+<b>H</b>) and 
            <i>Flip Vertical</i> (shortcut <b>Ctrl</b>+<b>V</b>) - 
            flips the figure in two various directions. You should see the 
            result of editing on the figures panel or the game field.
        </p>
        <h3>Interaction with the game field</h3>
        <img src="field.PNG" title="A game field."/>
        <p>
            After selecting the figure, you can place it on the game field.
            To do this, drag the mouse on the game field area (you should to see
            the selected figure under your mouse cursor). If the selected figure
            is colored, you're able to put it on the game field by clicking on 
            the left mouse button (<b>LMB</b>) or pressing the <b>Enter</b>.
            Also you can use the <b>arrow keys</b> to moving your figure.
        </p>
        <p>
            You may wish to cancel the last action. To do this, press the 
            <b>Ctrl</b>+<b>Z</b> key combination or select the <b>Actions</b> - 
            <b>Undo</b> command in the main menu. Also you're able to delete any
            figure from the game field by pressing the right mouse button 
            (<b>RMB</b>) or change the position of the figure already inserted 
            by pressing the left mouse button (<b>LMB</b>) on its location.
        </p>
    </body>
</html>
